import request from '@/utils/request'

// 获取列表
export const getArticles = params => request.get('/interview/query', { params })

// 获取单个面经详情
export const Detail = params => request.get('/interview/show', { params })

// 点赞.喜欢接口
export const LikeOpt = id => request.post('/interview/opt', { id, optType: 1 })

// 收藏接口
export const CollectOpt = id => request.post('/interview/opt', { id, optType: 2 })

// 收藏列表接口
export const CollectS = obj => request.get('/interview/opt/list', { params: { page: obj.page, pageSize: 5, optType: 2 } })

// 喜欢列表
// 获取我的喜欢
export const LikeS = obj => request.get('/interview/opt/list', { params: { page: obj.page, pageSize: 5, optType: 1 } })
